package com.rambo.sdh.controller;

import java.io.Reader;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.rambo.sdh.common.controller.BaseController;
import com.rambo.sdh.service.inter.DepartmentService;

@Controller
public class DepartmentAction extends BaseController {

	
	@Autowired
	private DepartmentService departmentService;
	
	@RequestMapping("/getDepartmentByid")
	public String getDepartmentByid(@RequestParam("id") Integer id){
		
	departmentService.getDepartmentByid(id);
	return "success";
		
	}
	
	
	
	@RequestMapping("/getDePartmentByemployeeId")
	public String getDePartmentByemployeeId(@RequestParam("id") Integer id){
		
	departmentService.getDePartmentByemployeeId(id);
	return "success";
		
	}
	
	

	
	@RequestMapping("/getemployeeByDepartmentId")
	public String getemployeeByDepartmentId(@RequestParam("id") Integer id){
		
	departmentService.getemployeeByDepartmentId(id);
	return "success";
		
	}
}
